package com.xxxx;

import com.xxxx.config.ApplicationContext;
import com.xxxx.pojo.User;
import com.xxxx.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

/**
 * Created By ShaoXikai on 2022/7/20
 */
public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ApplicationContext.class);
        UserService userService = ac.getBean(UserService.class);
        List<User> users = userService.queryAllStuInfo();
        users.forEach(System.out::println);
    }

}
